package cn.xinfei.xdecision.common.dao.component.decisiontree;

import cn.xinfei.xdecision.common.model.component.ComponentVo;
import cn.xinfei.xdecision.common.model.component.dependency.resp.DecisionComponentDependencyResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.xinfei.xdecision.common.model.component.decisiontree.DecisionTreeDetailCondition;

import java.util.List;

public interface DecisionTreeDetailConditionMapper extends BaseMapper<DecisionTreeDetailCondition> {
    /**
     * 通过变量code集合查询组件code
     *
     * @param values 变量code集合
     */
    List<DecisionComponentDependencyResp> getComponentCodeByVarCodes(List<String> values);

    /**
     * 通过组件code集合查询变量code
     *
     * @param componentVoListList 组件code和versionNo集合
     */
    List<String> getFieldCodesByComponentCodes(List<ComponentVo> componentVoListList);
}
